package cm.server.dao;

import cm.server.entity.Venue;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * @author zy
 * @description
 * @date 2021/4/10 11:05
 */
public interface VenueRepository extends JpaRepository<Venue, Long> {
    @Query(value = "select * from venue where user_name=?1 and venue_name=?2", nativeQuery = true)
    Venue findVenue(String user_name, String venue_name);
}
